package map.spawnStation;

import logic.nodes.nodeSettings.Settings;

import com.jme.math.Vector3f;

public class SpawnPointProperties extends Settings {
	
	public static final String LOCX = "LocationX";
	public static final String LOCY = "LocationY";
	public static final String LOCZ = "LocationZ";
	public static final String ORIENTATION = "Orientation";
	public static final String RADIUS = "Radius";
	public static final String MAX_CAPTURE = "MaxCapturePoints";
	public static final String ID = "ID";
	public static final String LETTER = "Letter";
	
	public SpawnPointProperties(Settings settings) {
		super(settings);
	}
	
	public Vector3f getLocation() {
		float x = Float.valueOf(getValueOf(LOCX)).floatValue();
		float y = Float.valueOf(getValueOf(LOCY)).floatValue();
		float z = Float.valueOf(getValueOf(LOCZ)).floatValue();
		return new Vector3f(x, y, z);
	}
	
	public float getOrientation() { return Float.valueOf(getValueOf(ORIENTATION)).floatValue(); }
	
	public int getRadius() { return Integer.valueOf(getValueOf(RADIUS)).intValue(); }
	
	public int getMaxCapturePoints() { return Integer.valueOf(getValueOf(MAX_CAPTURE)).intValue(); }
		
	public int getID() { return Integer.valueOf(getValueOf(ID)).intValue(); }
	
	public String getLetter() { return getValueOf(LETTER); }
}